home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / Vk / VkCheckBox.z / VkCheckBox
Encoding:
Text File  |  2002-10-03  |  9.5 KB  |  265 lines

  1.  
  2.  
  3.  
  4. VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))                                                  VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      VkCheckBox - A simple interface to a multi-choice preference panel
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      VkComponent : VkCallbackObject
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <Vk/VkCheckBox.h>
  16.  
  17. PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  18.    CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
  19.            VkCheckBox(const char* name, Widget parent);
  20.            virtual void ~VkCheckBox(void);
  21.  
  22.  
  23.    AAAAddddddddiiiinnnngggg iiiitttteeeemmmmssss
  24.            Widget addItem(char* name, Boolean set = 0,
  25.                           XtCallbackProc proc = NULL,
  26.                           XtPointer clientData = NULL);
  27.  
  28.  
  29.    SSSSeeeettttttttiiiinnnngggg aaaannnndddd GGGGeeeettttttttiiiinnnngggg SSSSttttaaaatttteeee
  30.            void setValue(int index, Boolean newValue);
  31.            void setValues(Boolean* values, int numValues);
  32.            int getValue(int index);
  33.  
  34.  
  35. PPPPRRRROOOOTTTTEEEECCCCTTTTEEEEDDDD PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  36.    DDDDeeeetttteeeeccccttttiiiinnnngggg SSSSttttaaaatttteeee CCCChhhhaaaannnnggggeeeessss
  37.            virtual void valueChanged(int index, Boolean newValue);
  38.  
  39.  
  40.    PPPPrrrrooootttteeeecccctttteeeedddd DDDDaaaattttaaaa MMMMeeeemmmmbbbbeeeerrrrssss
  41.            WidgetList _widgetList;
  42.            Widget _rc, _label;
  43.  
  44.  
  45. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  46.           The VkCheckBox class offers a simple interface for creating a set of
  47.           check boxes. Instantiating the component creates an empty, labeled
  48.           component that contains a Motif XmRowColumn widget. Adding items via
  49.           the _a_d_d_I_t_e_m() member function creates XmToggleButton widgets to be
  50.           added to the XmRowColumn widget. The state of any individual check
  51.           item can be set using the _s_e_t_V_a_l_u_e() or _s_e_t_V_a_l_u_e_s() member
  52.           functions. The current value of any item can be queried using
  53.           _g_e_t_V_a_l_u_e(). The class also supports a virtual member function that
  54.           can notify derived classes when the state of any item changes.  The
  55.           class can also be used directly using the _V_k_C_h_e_c_k_B_o_x::_i_t_e_m_C_h_a_n_g_e_d()
  56.           ViewKit callback.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))                                                  VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))
  71.  
  72.  
  73.  
  74.  
  75.  
  76. DDDDEEEERRRRIIIIVVVVIIIINNNNGGGG SSSSUUUUBBBBCCCCLLLLAAAASSSSSSSSEEEESSSS
  77.           Derived classes can be notified of changes to the state of any item
  78.           by overriding the _v_a_l_u_e_C_h_a_n_g_e_d() member function. Derived classes
  79.           also have access to the __w_i_d_g_e_t_L_i_s_t member, which contains the
  80.           toggle buttons added to the checkbox, as well as the rowcolumn
  81.           widget __r_c that holds the toggle buttons and the label widget __l_a_b_e_l
  82.           supported by this class.
  83.  
  84.  
  85.  
  86. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  87.    vvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeedddd(((())))
  88.            virtual void valueChanged(int index, Boolean newValue);
  89.  
  90.  
  91.           This virtual member function is called when the state of any item in
  92.           the checkbox changes. The arguments indicate the index of the item
  93.           that has changed and the current (new) value of that item.
  94.  
  95.    VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx(((())))
  96.            VkCheckBox(const char* name, Widget parent);
  97.  
  98.  
  99.           Initialize the VkCheckBox object. Various manager widgets are
  100.           created to support the items in the checkbox.
  101.  
  102.    ~~~~VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx(((())))
  103.            virtual void ~VkCheckBox(void);
  104.  
  105.  
  106.           Free all storage associated with a VkCheckBox object.
  107.  
  108.    aaaaddddddddIIIItttteeeemmmm(((())))
  109.            Widget addItem(char          *name,
  110.                          Boolean        initialValue = 0,
  111.                          XtCallbackProc callback     = NULL,
  112.                          XtPointer      clientData   = NULL);
  113.  
  114.  
  115.           Add a new item to the checkbox. Create an XmToggleButton widget,
  116.           whose state is initially set to the given optional value. The
  117.           optional callback must be an Xt-style callback. The _c_l_i_e_n_t_D_a_t_a
  118.           argument, if provided will be passed to the Xt callback when it is
  119.           called. The function returns the XmToggleButton widget that is
  120.           created by this function.
  121.  
  122.    sssseeeettttVVVVaaaalllluuuueeee(((())))
  123.            void setValue(int index, Boolean newValue);
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))                                                  VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))
  137.  
  138.  
  139.  
  140.           Set the value of the item indicated by the _i_n_d_e_x to the given new
  141.           value.
  142.  
  143.    sssseeeettttVVVVaaaalllluuuueeeessss(((())))
  144.            void setValues(Boolean* values, int numValues);
  145.  
  146.  
  147.           Set the values of _n_u_m_V_a_l_u_e_s items at once. The _v_a_l_u_e_s argument is
  148.           expected to be an array of Boolean values of less than or equal to
  149.           the number of items in the check box.
  150.  
  151.    ggggeeeettttVVVVaaaalllluuuueeee(((())))
  152.            int getValue(int index);
  153.  
  154.  
  155.           Retrieve the current value of the specified item.
  156.  
  157. DDDDAAAATTTTAAAA MMMMEEEEMMMMBBBBEEEERRRR DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  158.    ____wwwwiiiiddddggggeeeettttssss
  159.            WidgetList _widgets;
  160.  
  161.  
  162.           The list of XmToggleButton widgets in the checkbox.
  163.  
  164.    iiiitttteeeemmmmCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk
  165.            static const char* const itemChangedCallback;
  166.  
  167.  
  168.           A callback list that is invoked when any item changes state.  The
  169.           index of the item that changed is returned as call data.
  170.  
  171. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  172.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
  173.           installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
  174.           setDefaultResources(), getResources(), VkComponent(), manage(),
  175.           unmanage(), baseWidget(), okToQuit(), _name, _baseWidget, _w,
  176.           deleteCallback
  177.  
  178.  
  179.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
  180.           callCallbacks(), addCallback(), removeCallback(),
  181.           removeAllCallbacks(),
  182.  
  183.  
  184. KKKKNNNNOOOOWWWWNNNN DDDDEEEERRRRIIIIVVVVEEEEDDDD CCCCLLLLAAAASSSSSSSSEEEESSSS
  185.      VkRadioBox
  186.  
  187. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  188.      VkComponent, VkCheckBox _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  189.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  190.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  191.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))                                                  VVVVkkkkCCCChhhheeeecccckkkkBBBBooooxxxx((((3333xxxx))))
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.                                                                         PPPPaaaaggggeeee 4444
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.